package com.huawei.appmarket.service.predownload.jobservice;

import android.app.job.JobParameters;
import android.app.job.JobService;
import android.os.Bundle;
import com.huawei.appmarket.service.alarm.control.RepeatingTaskManager;
import o.Logger;
import o.ContentManager;
import o.edl;
import o.edq;
import o.edu;

public class WlanPeriodicJobService extends JobService {
    public static final long DEFAULT_JOB_PERIODIC = 7200000;

    public static void schedule() {
        Logger.ˎ("JobSchedulerManager", "WlanPeriodicJobService schedule, result: " + edq.ॱ().ˎ(10001, false, true, edl.ˏ().ॱˋ(), edu.ˊ().ˋ()));
    }

    public boolean onStartJob(JobParameters jobParameters) {
        Logger.ˎ("JobSchedulerManager", "WlanPeriodicJobService job started");
        Bundle bundle = new Bundle();
        bundle.putInt(RepeatingTaskManager.KEY_PRE_DOWNLOAD_START_TYPE, 11);
        RepeatingTaskManager.executeJobTasks(ContentManager.getInstant().getContext(), bundle, 10001);
        return false;
    }

    public boolean onStopJob(JobParameters jobParameters) {
        Logger.ˎ("JobSchedulerManager", "WlanPeriodicJobService job stopped");
        return false;
    }
}
